<template>
	<view class="page-body">
		<view class="sub-page-body">
			<view class="title" v-if="Info.NoticeType" v-text="Info.NoticeType + Info.NoticeType + Info.NoticeType"></view>
			<text class="Author" v-if="Info.UserName" v-text="'作者：' + Info.UserName"></text>
			<view><rich-text :nodes="Info.NoticeContent"></rich-text></view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			Info:{

			}
		};
	},
	onLoad(e) {
		console.log(' details ', e);
		this.GetDetails(e)
	},
	methods: {
		GetDetails(e) {
			this.GET('NT/AddOrEdit', {
				id: e.id,
				ProcessId: '',
				PersonInfo: {
					UserId: 'LVYAN_001559',
					UserName: '谢昆明',
					TenantID: 9,
					IsAdmin: true,
					Mobile: '15290225671',
					OpenId: 'oz7vx0zs4On_q5a79Q8pSynITxKI',
					TenantName: '绿雁人事管理'
				}
			}).then(result=>{
				this.Info=result.data;
				uni.setNavigationBarTitle({
					title:this.Info.NoticeType
				})
			});
		}
	}
};
</script>

<style lang="less">
.page-body {
	width: 90%;
	margin: 0 auto;
	border-radius: 20upx;
	background: #f6f6fa;
}
.sub-page-body {
	margin: 20upx 16upx;
}
.page-body .title {
	font-size: 50upx;
	font-weight: bolder;
	display: inline-block;
	white-space: nowrap;
	width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
}
.page-body .Author {
	font-size: 34upx;
	font-weight: 80;
}
</style>
